package com.zhangbo.study.designpatternlearning.factory;

import com.zhangbo.study.designpatternlearning.factory.store.ChicagoPizzaStore;
import com.zhangbo.study.designpatternlearning.factory.store.NYStylePizzaStore;

/**
 * 工厂模式
 */
public class FactoryRun {

    public static void main(String[] args) {
        PizzaStore nyStore = new NYStylePizzaStore();
        PizzaStore chicagoStore = new ChicagoPizzaStore();

        Pizza pizza = nyStore.orderPizza(PizzaEnum.CHEESE);
        Pizza pizza2 = chicagoStore.orderPizza(PizzaEnum.CLAM);

    }
}
